﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl" >
    <xsl:output method="xml" indent="yes"/>
    <xsl:template match="/">
      <xsl:for-each select="Advertisements/Ad">
        <a target="_blank">
          <xsl:attribute name="alt">
            <xsl:value-of select="AlternateText"/>
          </xsl:attribute>
          <xsl:attribute name="title">
            <xsl:value-of select="AlternateText"/>
          </xsl:attribute>
          <xsl:attribute name="href">
            <xsl:value-of select="NavigateUrl"/>
          </xsl:attribute>
          <xsl:value-of select="Caption"/>
        </a>
        <xsl:if test="Caption">
        <br />
        </xsl:if>
      </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>
